﻿using Microsoft.Extensions.Primitives;
using Yarp.ReverseProxy.Configuration;

namespace Quickly.SpaProxy.ReverseProxy;

internal class SpaReverseProxyConfig : IProxyConfig
{
    public List<ClusterConfig> Clusters { get; internal set; } = [];
    public List<RouteConfig> Routes { get; internal set; } = [];

    IReadOnlyList<RouteConfig> IProxyConfig.Routes => Routes;

    IReadOnlyList<ClusterConfig> IProxyConfig.Clusters => Clusters;

    public IChangeToken ChangeToken { get; internal set; } = default!;
}
